package com.ss.android.http.legacy.a;

import com.ss.android.http.legacy.ParseException;
import com.ss.android.http.legacy.HttpHeader;
import com.ss.android.http.legacy.c;

public final class LegacyHeader implements HttpHeader, Cloneable {
    private final String name;
    private final String value;

    public LegacyHeader(String name, String value) {
        if(name == null) {
            throw new IllegalArgumentException("Name may not be null");
        }
        this.name = name;
        this.value = value;
    }

    public final String name() {
        return this.name;
    }

    public final String value() {
        return this.value;
    }

    public final Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    public final c[] d() throws ParseException {
        return this.value != null ? com.ss.android.http.legacy.a.c.a(this.value) : new c[0];
    }

    public final String toString() {
        return d.a(this).toString();
    }
}

